package cn.spring.cloud.docker.feign;

import cn.spring.cloud.docker.Department;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("server-departments")
public interface DepartmentClient {
    @GetMapping("department/{id}")
    public Department departmentDetail(@PathVariable("id") Integer id);
}
